%%%-------------------------------------------------------------------
%%% @author liuwentao
%%% @doc
%%%     资产升级
%%% @end
%%% Created : 26. 7月 2021 11:15
%%%-------------------------------------------------------------------
-module(assets_ver).
-author("liuwentao").


%% API
-export([
    do/1
]).

-include("assets.hrl").
-include("common.hrl").

%% @doc 物品数据版本转换
do(P = #assets{ver = ?ASSETS_VER}) ->
    {ok, P};
do(P) ->
    ?ERR("资产数据:~w", [P]),
    {false, "资产数据版本转换失败"}.